<tagLib name="html" />

<include file="Public:header" />

<div class="container" id="cpcontainer">
    <h3>{$Think.lang.avatar.title}</h3>
    <p class="tips">{$Think.lang.avatar.gravatar_tips}</p>
    <form name="cpform" method="post" action="__URL__/avatar">
    <input type="hidden" name="op" value="save" />
    <table class="tb tb2">
        <tbody id="gravatar">
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.avatar.gravatar_rating}</td></tr>
        <tr>
            <td class="vtop rowform" colspan="2">
	            <ul class="nofloat" onmouseover="altStyle(this);">
		            <volist name="gravatarRatingOptions" id="vo">
		            <li><input type="radio" name="gravatar[rating]" value="{$key}" <eq name="key" value="$gravatarRatingChecked">checked</eq> /> {$vo} </li>
		            </volist>
		        </ul>
            </td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.avatar.gravatar_size}</td></tr>
        <tr>
            <td class="vtop rowform">
                <input name="gravatar[size]" value="{$rs.gravatar.size}" type="text" class="txt" />
            </td>
            <td class="vtop tips2">{$Think.lang.avatar.gravatar_size_explain}</td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.avatar.gravatar_default}</td></tr>
        <tr>
            <td class="vtop rowform">
                <ul class="nofloat" onmouseover="altStyle(this);">
                    <volist name="gravatarDefaultOptions" id="vo">
                    <li><input style="vertical-align:middle;" type="radio" name="gravatar[default]" value="{$key}" <eq name="gravatarDefaultChecked" value="$key">checked</eq> />&nbsp;<img style="vertical-align:middle;width:32px;height:32px;" src="__STYLE__/avatar_{$key}.png" />&nbsp;{$vo}</li>
                    </volist>
                </ul> 
            </td>
            <td class="vtop tips2"></td>
        </tr>
        <tr class="nobg"><td colspan="2" class="td27">{$Think.lang.avatar.gravatar_custom_default}</td></tr>
        <tr>
            <td class="vtop rowform"><input name="gravatar[custom_default]" value="{$rs.gravatar.custom_default}" type="text" class="txt"  /></td>
            <td class="vtop tips2">{$Think.lang.avatar.gravatar_custom_default_explain}</td>
        </tr>
        </tbody>
        <tr class="nobg"><td colspan="15"><div class="fixsel"><input class="btn" type="submit" value="{$Think.lang.submit}" /></div></td></tr>
    </table>
    </form>
</div>

<include file="Public:footer" />
